

set(rockchipfil
iogrps.cpp
rv1126.cpp
)
include_directories(../)

IF(ENABLE_SHARED_COM)
add_library(gpio SHARED ${rockchipfil})
else()
add_library(gpio STATIC ${rockchipfil})
endif()

target_link_libraries(gpio PUBLIC oraygpio-common)


INSTALL(FILES S15oraygpio  DESTINATION /etc/init.d
		PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
		GROUP_EXECUTE GROUP_READ GROUP_WRITE
		)


install (TARGETS gpio
    RUNTIME DESTINATION bin
    LIBRARY DESTINATION lib
    ARCHIVE DESTINATION lib
    PUBLIC_HEADER DESTINATION include/oraygpio
)
